<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('fbaccount/index')}">申户账户列表</a></li>
			<li><a href="{:url('fbaccount/add')}">添加申户账户</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('fbaccount/index')}" style="width: 50%; float: left;">
            输入搜索内容:
            <input type="text" class="form-control" name="search_word" style="width: 250px;" value="{:input('request.search_word/s','')}" placeholder="输入搜索内容">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('fbaccount/index')}">清空</a>
        </form>
        &nbsp;&nbsp;
        <form class="well form-inline margin-top-20" method="post" action="{:url('fbaccount/fileupload')}" style="width:45%; float: left;">
			<input class="btn btn-danger" id="excel-1" type="hidden" name="upload_filename_url1" >
         	<input  class="btn btn-danger" id="excel-1-name" type="text" name="upload_filename" title="Excel名称">
         	<a href="javascript:uploadOne('Excel上传','#excel-1','file');" class="btn btn-danger">Excel文件上传</a>
         	<button type="submit" class="btn btn-primary js-ajax-submit">导入</button>

         	<a class="btn btn-primary" href="{:url('fbaccount/currdatexport')}">导出数据</a>
        </form>

        <!-- <form class="well form-inline margin-top-20" method="post" action="{:url('usewebsite/currdatexport')}">
            开始日期:
            <input type="text" class="form-control" name="date_stop_s" style="width: 200px;" value="<?=date('Y-m-d', strtotime('-1 days'))?>" placeholder="请输入开始日期">
            结束日期:
            <input type="text" class="form-control" name="date_stop_e" style="width: 200px;" value="<?=date('Y-m-d', strtotime('-1 days'))?>" placeholder="请输入结束日期">

            <php> if(session('ADMIN_MANGER') !== '10002'){</php>
            	<input type="submit" class="btn btn-primary" value="导出数据" />
             <php> }</php>
        </form> -->

        <div style="clear: both;"></div>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>序号</th>
					<th>账户代理</th>
					<th>账户编号</th>
					<th>账户名称</th>
					<th>账户编码</th>
					<th>数据时间</th>
					
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="fbaccountList" item="vo">
				<tr>
					<td>{$key+1}</td>
					<td>{$vo.fbaccount_agent}</td>
					<td>{$vo.fbaccount_num}</td>
					<td>{$vo.fbaccount_name}</td>
					<td>{$vo.fbaccount_nick}</td>
					<td>{$vo.create_time}</td>
					
					<td>
						<a href='{:url("fbaccount/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a href="{:url('fbaccount/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>